package com.nts.visionworks.business.endpoint.domain;

// Generated 2013. 6. 23 ���� 6:33:40 by Hibernate Tools 4.0.0

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * EndPointScreenshot generated by hbm2java
 */
@Entity
@Table(name = "end_point_screenshot", catalog = "visionworks")
public class EndPointScreenshot implements java.io.Serializable
{

	private EndPointScreenshotId id;
	private EndPoint endPoint;
	private long screenshotArchiveId;
	private Boolean keeping;

	public EndPointScreenshot()
	{
	}

	public EndPointScreenshot(EndPointScreenshotId id, EndPoint endPoint,
			long screenshotArchiveId)
	{
		this.id = id;
		this.endPoint = endPoint;
		this.screenshotArchiveId = screenshotArchiveId;
	}

	public EndPointScreenshot(EndPointScreenshotId id, EndPoint endPoint,
			long screenshotArchiveId, Boolean keeping)
	{
		this.id = id;
		this.endPoint = endPoint;
		this.screenshotArchiveId = screenshotArchiveId;
		this.keeping = keeping;
	}

	@EmbeddedId
	@AttributeOverrides(
	{
			@AttributeOverride(name = "endPointId", column = @Column(name = "EndPointId", nullable = false)),
			@AttributeOverride(name = "uploadedDateTime", column = @Column(name = "UploadedDateTime", nullable = false, length = 19)) })
	public EndPointScreenshotId getId()
	{
		return this.id;
	}

	public void setId(EndPointScreenshotId id)
	{
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "EndPointId", nullable = false, insertable = false, updatable = false)
	public EndPoint getEndPoint()
	{
		return this.endPoint;
	}

	public void setEndPoint(EndPoint endPoint)
	{
		this.endPoint = endPoint;
	}

	@Column(name = "ScreenshotArchiveId", nullable = false)
	public long getScreenshotArchiveId()
	{
		return this.screenshotArchiveId;
	}

	public void setScreenshotArchiveId(long screenshotArchiveId)
	{
		this.screenshotArchiveId = screenshotArchiveId;
	}

	@Column(name = "Keeping")
	public Boolean getKeeping()
	{
		return this.keeping;
	}

	public void setKeeping(Boolean keeping)
	{
		this.keeping = keeping;
	}

}
